package com.xebest.web.mapper.write;

import com.xebest.web.model.XeVenFinPurchPayDetailEntity;
import com.xebest.web.model.XeVenFinPurchPayEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 付款单mapper
 *
 * @author 赵盼飞
 */
public interface XeVenFinPurchPayWriteMapper {

    /**
     * 添加付款单信息
     *
     * @author 赵盼飞
     */
    int insertFinPurchPay(XeVenFinPurchPayEntity finPurchPay);

    /**
     * 更新付款单信息
     *
     * @author 赵盼飞
     */
    int updateXeVenFinPurchPayByPSettleCode(XeVenFinPurchPayEntity finPurchPay);

    /**
     * 添加付款单明细
     *
     * @author 赵盼飞
     */
    int insertFinPurchPayDetail(XeVenFinPurchPayDetailEntity finPurchPayDetail);

    /**
     * 修改付款单明细
     *
     * @author 赵盼飞
     */
    int updateFinPurchPayDetailByPSettleCode(XeVenFinPurchPayDetailEntity finPurchPayDetail);

    /**
     * 批量插入付款单明细数据
     *
     * @author 赵盼飞
     */
    int insertBatchFinPurchPayDetail(@Param("finPurchPayDetailList") List<XeVenFinPurchPayDetailEntity> finPurchPayDetailList);

    /**
     * 批量添加付款单
     *
     * @author 赵盼飞
     */
    int insertBatchFinPurchPay(@Param("finPurchPayList") List<XeVenFinPurchPayEntity> finPurchPayList);

    /**
     * 更新FinPurchPay
     *
     * @author 赵盼飞
     */
    int updateBathFinPurchPayByPsettleCodeArr(XeVenFinPurchPayEntity en);

    /**
     * 根据订单号批量更新付款单信息
     *
     * @author 赵盼飞
     */
    int updateFinPurchPayByOrderId(XeVenFinPurchPayEntity finPurchPayEntity);


}